#!/usr/bin/python

if __name__ == "__main__":
    try:
        instance = None
        instance = ServiceFactory.create_service_instance("timer_service.timer_service", "TimerService", arguments = None)
        instance.invoke()
    except DatabaseException,e:
        print (e)
        #str = str(e)
    except ModuleNotFoundException,e:
        print (e)
    except ClassNotFoundException,e:
        print (e)
        #str = str(e)
    finally:
        if instance is not None:
            del instance
